package demo2;
import demo1.TestDemo;

class Student{

}
class Teacher{

}
//组合
class School{
    public Student[] students;
    public Teacher[] teachers;
}

public class Test extends TestDemo {

    public void test(){
        System.out.println(super.a); //同一个包的不同类的子类中访问protected
    }

    public static void main(String[] args) {
        Test t = new Test();
        t.test();
    }
}
